package com.wk.worksetter.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.wk.worksetter.R
import com.wk.worksetter.db.WorkEntity

/**
 * @author peng
 * @date 2021/1/29
 * 说明
 */
class MainListAdapter : BaseQuickAdapter<WorkEntity,BaseViewHolder>(R.layout.item_main_list,null) {
    override fun convert(holder: BaseViewHolder, item: WorkEntity) {
        holder.setText(R.id.tv_app_name, item.packageLabel)
        holder.setImageDrawable(R.id.iv_app_icon, item.icon)
    }
}